import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Layout.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '',
    redirect: '/components/collapse'
  },
  {
    path: '/components',
    component: Home,
    children: [
      {
        path: 'collapse',
        component: () => import('../views/Collapse')
      },
      {
        path: 'increase',
        component: () => import('../views/Increase')
      }
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
